package com.example.game_community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.game_community.entity.User;
import com.example.game_community.utils.Result;

public interface UserService extends IService<User> {

    // 登录
    User login(User user);

    // 注册
    Result<User> register(User user);

    // 获取验证码
    Result<User> sendVerCode(String phone);

    // 验证验证码并登录
    Result<?> verifyCode(String phone, String code);

    User convertTo(User user);
}
